package com.shu.component_base.utils.view;

import android.widget.Toast;

import com.shu.component_base.BaseApplication;

/**
 * Toast工具类
 * author yangshu
 * CreateDate 20.7.23
 */
public class ToastHelper
{

    private static Toast sToast = null;

    public static void showToast(String tip)
    {
        if (sToast == null)
        {
            sToast = Toast.makeText(BaseApplication.getAppContext(), tip, Toast.LENGTH_SHORT);
        }else {
            sToast.setText(tip);
        }
        sToast.show();
    }
}